package com.robot.services.impl;

import com.robot.daos.EventInfoDao;
import com.robot.models.EventInfo;
import com.robot.services.EventInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by renruiquan on 2017/5/27.
 */

@Service("EventInfoService")
public class EventInfoServiceImpl implements EventInfoService {

    @Autowired
    private EventInfoDao eventInfoDao;

    @Override
    public List<EventInfo> getAllList() {
        return eventInfoDao.getAllList();
    }

    @Override
    public  int add(EventInfo eventInfo) {
        return eventInfoDao.add(eventInfo);
    }
}
